package top.jlzhou.tools.http;

public class Parameter {
	
	private String name,value;

	
	public Parameter() {
		super();
	}


	public Parameter(String name, String value) {
		super();
		setName(name);
		setValue(value);
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		if(name==null||"".equals(name)){
			throw new RuntimeException("参数名不能为空!");
		}
		this.name = name;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value==null?"":value;
	}
	
	
	
}
